<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<link href="{$pathView}/front.css?{:config('app.app_version')}" rel="stylesheet">
<link href="{$pathView}/{$module}/{$controll}/{$action}.css?{:config('app.app_version')}" rel="stylesheet">
<script>const CONFIG = {:json_encode($jsConfig)}</script>
<script src="{$pathStatic}/require/2.3.6/require.min.js?{:config('app.app_version')}" data-main="{$pathView}/front.js?{:config('app.app_version')}"></script>
{block name="head"}{/block}
{:config('site.tongji_header')}
</head>
<body>
<header>
  <nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top">
    <div class="container">
      <a class="navbar-brand" href="{:dcUrl('index/index/index')}">{:config('site.name')}</a>
      <ul class="navbar-nav">
        {volist name=":config('navbar.')" id="item"}
        <li class="nav-item">
          <a class="nav-link {:dcDefault($controll,$item['active'],'active')}" href="{:dcUrl($item['link'])}">{$item.name}</a>
        </li>
        {/volist}
        {if $user_id}
        <li class="nav-item">
          <a class="nav-link" href="{:dcUrl('user/index/index')}">我的</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="{:dcUrl('user/logout/index')}">退出</a>
        </li>
        {else/}
        <li class="nav-item">
          <a class="nav-link" href="{:dcUrl('user/login/index')}">登录</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="{:dcUrl('user/signup/index')}">注册</a>
        </li>
        {/if}
      </ul>
    </div>
  </nav>
</header>
{block name="main"}{/block}
<footer class="container text-muted text-center fs-0">
  <p>Powered by <a href="https://www.daicuo.cc" target="_blank">{:lang('app_name')}</a> V{:config('app.app_version')}</p>
  <p class="text-muted">
    {:config('site.host')}
    {if config('site.icp')}<span class="mx-1">|</span><a class="text-muted" href="https://beian.miit.gov.cn/" target="_blank">{:config('site.icp')}</a>{/if}
    {if config('site.icp_police')}<span class="mx-1">|</span><a class="text-muted" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode={:dcNumber(config('site.icp_police'))}" target="_blank">{:config('site.icp_police')}</a>{/if}
    {if config('site.icp_permit')}<span class="mx-1">|</span>{:config('site.icp_permit')}{/if}
    {if config('site.phone')}<span class="mx-1">|</span>{:config('site.phone')}{/if}
    {if config('site.email')}<span class="mx-1">|</span>{:config('site.email')}{/if}
  </p>
</footer>
{:config('site.tongji_footer')}
</body>
</html>